﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ecreate.Business;
using Ecreate.Model;

namespace Ecreate.Web.systemanage.info
{
    public partial class infodtl : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InfoDtlService service = new InfoDtlService();
                IList<t_info_dtl> l = service.getAllInfo();
                this.rpt_data.DataSource = l;
                this.rpt_data.DataBind();
            }
        }
        protected string getVisible(object value)
        {
            if (value.ToString() == "1")
            {

                return "可见";
            }
            else
            {
                return "不可见";
            }
        }
        protected string getTextValue(object value)
        {
            if (value.ToString() == "")
            {

                return "&nbsp";
            }
            else
            {
                return value.ToString();
            }


        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("/systemanage/info/infocrud.aspx?action=insert");
        }

    }
}
